/** 评论相关接口 */
import request from '@/utils/request'
const service_name = 'blogWeb'
/** 查询评论列表 */
export function listComment(query) {
  return request({
    url: `/${service_name}/comment/list`,
    method: 'get',
    params: query
  })
}

/** 查询关于我的的评论列表 */
export function listAboutComment(query) {
  return request({
    url: `/${service_name}/comment/listAboutComment`,
    method: 'get',
    params: query
  })
}

/** 删除评论 */
export function delComment(ids) {
  return request({
    url: `/${service_name}/comment/` + ids,
    method: 'delete'
  })
}

/**
 *@Description 批量新增
 *@Author huangpeng
 *@Date 2022/11/26 11:43
 */
export function insertCommentByBatch(dataList) {
  return request({
    url: `/${service_name}/comment/insertByBatch`,
    method: 'post',
    data: dataList
  })
}

/** 查询我的评论列表 */
export function listMyComment(query) {
  return request({
    url: `/${service_name}/comment/listMyComment`,
    method: 'get',
    params: query
  })
}
